// worker.js
const Help = require("./help.js");
// async function one_file_download(down_file_object){
//   let _down_file_object=await Help.one_file_download(down_file_object)
//   process_send(_down_file_object)
// }
process.on('message', async (message_data) => {
  if(!global["json_config"]){
    global["json_config"]=require("./config.js");   
  }
  //init
  {
    if(!global["class_rabbitmq"]){
      await Help.Init_RabbitMQ()
    }
    if(!global["class_s3"]){
      await Help.Init_S3()
    }
  }
  if(global["class_rabbitmq"]){
    Help.set_global_consume_exes()
    Help.consume_rabbitmq_tif_convert()
  }
});
